#ifndef TABLEINFO_H
#define TABLEINFO_H
//商品主档表
const QString g_goodsTableName = "goods";
const QString g_goodsColumn[11] = {"id", "fullName", "simpleName", "count", "units", "categories",
                               "sellPrice", "enterPrice", "addTime", "extField1", "extField2"};
enum Goods {
    Good_Id,
    Good_FullName,
    Good_SimpleName,
    Good_Count,
    Good_Units,
    Good_Categories,
    Good_SellPrice,
    Good_EnterPrice,
    Good_AddTime,
    Good_ExtField1,
    Good_ExtField2,
};

//商品条码表
const QString g_barCodeTableName = "goodsBarCode";
const QString g_barCodeColumn[3] = {"goodId", "barCode", "remark"};
enum BarCode {
    BarCode_GoodId,
    BarCode_Code,
    BarCode_Remark
};

//商品种类表
const QString g_categorieTableName = "goodsCategorie";
const QString g_CategorieColumn[2] = {"id", "categorieName"};
enum Categorie {
    Categorie_Id,
    Categorie_Name
};

//商品单位表
const QString g_unitTableName = "goodsUnit";
const QString g_unitColumn[2] = {"id", "Unitname"};
enum Unit {
    Unit_Id,
    Unit_Name
};
#endif // TABLEINFO_H
